# this is linux build script, not for bsd
set -xe
gcc -o stest stest.c -Wall -Wextra
gcc -o dmenu dmenux.c `pkg-config --cflags --libs freetype2` -lX11  -lXft -lfontconfig -DXINERAMA -lXinerama -Wall -Wextra -pedantic -D_XOPEN_SOURCE=700  -std=c11 -DDMENU_CENTER_PATCH -DGRUBER_DARKER_PATCH "$@"

sudo cp dmenu /usr/local/bin/dmenu
sudo cp dmenu_run /usr/local/bin/dmenu_run
sudo cp dmenu_path /usr/local/bin/dmenu_path
sudo cp stest /usr/local/bin/stest

############################### Below is document ###########################################################
### currently example build args
# ./build-and-install-by-args.sh -DDMENU_CENTER_PATCH -DUSER_PROMPT_PATCH -DPLUS_DEFAULT_PROMPT
